﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace EnvironmentManagerSystem.A
{ /// <summary>
    /// 枚举类型,标题的位置
    /// </summary>
    public enum CaptionPlace
    {
        Left,
        Right,
        Top,
    }

    /// <summary>
    /// 设置图片的属性类
    /// </summary>
    public class ImageAttribute
    {
        private int width = 1000;
        private int height = 500;
        private Color backColor = Color.White;
        private string caption = "柱形图";
        private Color captionColor = Color.Red;
        private int borderDistance = 10;
        private CaptionPlace cPlace = CaptionPlace.Left;
        private Font captionFont = new Font("宋体", 11);
        private int leftGraduationValue = 5;

        /// <summary>
        /// 图片的宽度
        /// </summary>
        public int Width
        {
            get
            {
                return width;
            }
            set
            {
                width = value;
            }
        }
        /// <summary>
        /// 图片的高度
        /// </summary>
        public int Height
        {
            get
            {
                return height;
            }
            set
            {
                height = value;
            }
        }
        /// <summary>
        /// 图片的背景色
        /// </summary>
        public Color BackColor
        {
            get
            {
                return backColor;
            }
            set
            {
                backColor = value;
            }
        }
        /// <summary>
        /// 图片的标题
        /// </summary>
        public string Caption
        {
            get
            {
                return caption;
            }
            set
            {
                caption = value;
            }
        }
        /// <summary>
        /// 图片中每个刻度的距离
        /// </summary>
        public int BorderDistance
        {
            get
            {
                return borderDistance;
            }
            set
            {
                borderDistance = value;
            }
        }
        /// <summary>
        /// 图片标题的颜色
        /// </summary>
        public Color CaptionColor
        {
            get
            {
                return captionColor;
            }
            set
            {
                captionColor = value;
            }
        }
        /// <summary>
        ///枚举类型,图片标题的位置
        /// </summary>
        public CaptionPlace CPlace
        {
            get
            {
                return cPlace;
            }
            set
            {
                cPlace = value;
            }
        }
        /// <summary>
        /// 图片标题的字体
        /// </summary>
        public Font CaptionFont
        {
            get
            {
                return captionFont;
            }
            set
            {
                captionFont = value;
            }
        }
        /// <summary>
        /// 图片左侧第一个大刻度的初始值
        /// </summary>
        public int LeftGraduationValue
        {
            get
            {
                return leftGraduationValue;
            }
            set
            {
                leftGraduationValue = value;
            }
        }
    }
}
